You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.1 KiB
52 lines
2.1 KiB
import "../globals.css";
|
|
import React from "react";
|
|
import { MainNav } from "../../components/MainNav";
|
|
import { Footer } from "../../components/Footer";
|
|
import { getMainNav } from "../../lib/data";
|
|
|
|
export const dynamicParams = true;
|
|
|
|
export async function generateStaticParams() {
|
|
return [{ locale: "zh-CN" }, { locale: "en" }];
|
|
}
|
|
|
|
export async function generateMetadata({ params }: { params: { locale: string } }) {
|
|
const locale = params.locale;
|
|
const isEn = locale === "en";
|
|
|
|
return {
|
|
title: isEn
|
|
? "Henggan Intelligence | Precision Imaging — Leading a New Era of Vision"
|
|
: "衡感智能:让城市具备安全感知能力",
|
|
description: isEn
|
|
? "Founded in November 2014, Henggan Intelligence is a leading intelligent imaging system provider in China. We deliver end-to-end on-device intelligent imaging solutions."
|
|
: "衡感智能提供AI驱动的城市结构安全数字底座,结合AI感知、数字孪生与智能硬件,构建设备—数据—AI—决策一体化安全体系。",
|
|
keywords: isEn
|
|
? ["Henggan Intelligence", "Urban Safety", "Structure Monitoring", "AI Perception", "Digital Twin", "Smart Hardware"]
|
|
: ["衡感智能", "城市安全", "结构监测", "AI感知", "数字孪生", "智能硬件"],
|
|
openGraph: {
|
|
title: isEn
|
|
? "Henggan Intelligence | Precision Imaging"
|
|
: "衡感智能:让城市具备安全感知能力",
|
|
description: isEn
|
|
? "AI-driven urban structure safety digital infrastructure"
|
|
: "AI驱动的城市结构安全数字底座",
|
|
locale: isEn ? "en_US" : "zh_CN",
|
|
},
|
|
};
|
|
}
|
|
|
|
export default function RootLocaleLayout({ children, params }: { children: React.ReactNode; params: { locale: string } }) {
|
|
const mainnav = getMainNav(params.locale);
|
|
return (
|
|
<html lang={params.locale === "en" ? "en" : "zh-CN"}>
|
|
<body className="bg-[#f6f8fc] text-[#1e2a3f]">
|
|
<MainNav items={mainnav} basePath={`/${params.locale}`} locale={params.locale} />
|
|
<main className="pt-16 md:pt-24 min-h-screen overflow-x-hidden">{children}</main>
|
|
<Footer locale={params.locale} />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|
|
|
|
|
|
|